public class ArgumentsBundle
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ArgumentsBundle.COMMON_ARGS
An enumeration containing common arguments used by the program.
|
| Modifier and Type | Field and Description |
|---|---|
private java.util.HashMap<java.lang.String,java.lang.Boolean> |
booleanList
The Mapping of String keywords to Notable Boolean values.
|
private java.util.ArrayList<Condition> |
conditionsList
The List of conditions to apply to the Algorithm.
|
private java.util.HashMap<java.lang.String,java.lang.Double> |
doubleList
The Mapping of String keywords to Notable Double values.
|
private java.util.HashMap<java.lang.String,java.lang.Enum> |
enumList
The Mapping of String keywords to Notable Enum values.
|
private java.util.HashMap<java.lang.String,java.lang.Integer> |
integerList
The Mapping of String keywords to Notable Integer values.
|
private java.util.HashMap<java.lang.String,java.lang.Object> |
objectsList
The Mapping of String keywords to Notable objects.
|
| Constructor and Description |
|---|
ArgumentsBundle()
Constructs the ArgumentsBundle.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCondition(Condition condition)
Adds a Condition to the conditionsList.
|
java.lang.Boolean |
getBoolean(java.lang.String key)
Gets a boolean from the booleanList.
|
java.util.List<Condition> |
getConditionsList()
Gets a copy of the conditionsList that will not structurally modify
the one owned by the bundle.
|
java.lang.Double |
getDouble(java.lang.String key)
Gets a double from the doubleList.
|
java.lang.Enum |
getEnum(java.lang.String key)
Gets an enum from the enumList.
|
java.lang.Integer |
getInteger(java.lang.String key)
Gets an integer from the integerList.
|
java.lang.Object |
getObject(java.lang.String key)
Gets an object from the enumList.
|
void |
putBoolean(java.lang.String key,
java.lang.Boolean val)
Puts a boolean in the booleanList.
|
void |
putDouble(java.lang.String key,
java.lang.Double val)
Puts a double in the doubleList.
|
void |
putEnum(java.lang.String key,
java.lang.Enum val)
Puts an enum in the enumList.
|
void |
putInteger(java.lang.String key,
java.lang.Integer val)
Puts an integer in the integerList.
|
void |
putObject(java.lang.String key,
java.lang.Object val)
Puts an object in the enumList.
|
void |
removeBoolean(java.lang.String key)
Removes a boolean from the booleanList.
|
void |
removeCondition(Condition condition)
Removes a Condition from the conditionsList.
|
void |
removeDouble(java.lang.String key)
Removes a double from the doubleList.
|
void |
removeEnum(java.lang.String key)
Removes an enum from the enumList.
|
void |
removeInteger(java.lang.String key)
Removes an integer from the integerList.
|
void |
removeObject(java.lang.String key)
Removes an object from the enumList.
|
java.lang.String |
toString() |
private final java.util.ArrayList<Condition> conditionsList
private final java.util.HashMap<java.lang.String,java.lang.Integer> integerList
private final java.util.HashMap<java.lang.String,java.lang.Double> doubleList
private final java.util.HashMap<java.lang.String,java.lang.Boolean> booleanList
private final java.util.HashMap<java.lang.String,java.lang.Enum> enumList
private final java.util.HashMap<java.lang.String,java.lang.Object> objectsList
public void addCondition(Condition condition)
condition - the Condition object to add.public void removeCondition(Condition condition)
condition - the Condition object to remove.public java.util.List<Condition> getConditionsList()
public void putInteger(java.lang.String key,
java.lang.Integer val)
key - the String keyword which maps to the integer.val - the Integer to put.public void removeInteger(java.lang.String key)
key - the String keyword which maps to the integer.public java.lang.Integer getInteger(java.lang.String key)
key - the String keyword which maps to the integer.public void putDouble(java.lang.String key,
java.lang.Double val)
key - the String keyword which maps to the double.val - the Double to put.public void removeDouble(java.lang.String key)
key - the String keyword which maps to the double.public java.lang.Double getDouble(java.lang.String key)
key - the String keyword which maps to the double.public void putBoolean(java.lang.String key,
java.lang.Boolean val)
key - the String keyword which maps to the boolean.val - the Boolean to put.public void removeBoolean(java.lang.String key)
key - the String keyword which maps to the boolean.public java.lang.Boolean getBoolean(java.lang.String key)
key - the String keyword which maps to the boolean.public void putEnum(java.lang.String key,
java.lang.Enum val)
key - the String keyword which maps to the enum.val - the Enum to put.public void removeEnum(java.lang.String key)
key - the String keyword which maps to the enum.public java.lang.Enum getEnum(java.lang.String key)
key - the String keyword which maps to the enum.public void putObject(java.lang.String key,
java.lang.Object val)
key - the String keyword which maps to the object.val - the Object to put.public void removeObject(java.lang.String key)
key - the String keyword which maps to the object.public java.lang.Object getObject(java.lang.String key)
key - the String keyword which maps to the object.public java.lang.String toString()
toString in class java.lang.Object